package com.tiancheng.trade.payment.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tiancheng.trade.payment.mapper.RefundSettleMapper;
import com.tiancheng.trade.payment.model.PaymentFlowDetailSettle;
import com.tiancheng.trade.payment.model.RefundSettle;
import com.tiancheng.trade.payment.service.IRefundSettleService;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;
import java.util.Set;

/**
 * 退款结算 service impl
 */
@Service
public class RefundSettleServiceImpl extends ServiceImpl<RefundSettleMapper, RefundSettle> implements IRefundSettleService {
    @Override
    public IPage<RefundSettle> listWaitSettles(LocalDate expectSettleDate, String payChannel, long current, long size) {
        return baseMapper.listWaitSettles(expectSettleDate,payChannel,new Page<>(current,size));
    }

    @Override
    public List<RefundSettle> completedSettles(Set<Long> refundSettleIds) {
        return baseMapper.completedSettles(refundSettleIds);
    }
}
